using System;

using SBPweb.Common.Session;

using SBPweb.PROvibe.Resources.Entities;

using SBPweb.PROvibe.Business.Warehouse;

namespace SBPweb.PROvibe.Business.Logic
{
	public class ActorManager
	{

		#region Constructor logic

		private ActorManager()
		{
		}

		#endregion

        private const string KEY_DEFAULT_ACTORID = "DefaultActorId";

		public static void StartActorSession()
		{
			SiteManager.MaintainSite();

            string cookie = CookieHandler.Get(KEY_DEFAULT_ACTORID);
            int actorId = 0;
            if (!string.IsNullOrEmpty(cookie))
            {
                actorId = Convert.ToInt32(cookie);
            }
            if (actorId > 0)
            {
                Actor actor = ActorFactory.ReadActorById(actorId);
            }
		}

		public static void EndActorSession()
		{
		}

	}
}
